package model

import "gorm.io/gorm"

type Category struct {
	gorm.Model
	Name     string `gorm:"column:name;type:varchar(255)" json:"name"`
	ParentID int    `gorm:"column:parent_id" json:"parent_id"`
}

func (table *Category) TableName() string {
	return "Category"
}
